﻿
<div class="col-sm-12">
    @if (ViewData.ModelState.ErrorCount > 0 || !string.IsNullOrEmpty(ViewBag.ErrorMessage))
    {
        <div class="alert alert-danger">
            <button type="button" class="close" data-dismiss="alert">×</button>
            <h5 id="msgRetorno">@ViewBag.ErrorMessage</h5>
            <div asp-validation-summary="ModelOnly" class="text-danger"></div>
        </div>
    }
    else if (!string.IsNullOrEmpty(ViewBag.SuccessMessage))
    {
        <div class="alert alert-success">
            <button type="button" class="close" data-dismiss="alert">×</button>
            <h5>@ViewBag.SuccessMessage</h5>
        </div>
    }

</div>
